$(document).ready(function(){
	$(".btn_close").on("click", function(event) {
		window.close();
	});
	
	$(".btn_save").on("click", function(event) {
		if($("#pw").val() == $("#pw_check").val()){
			var url = "updateSystemChangeSecurePw.jsp";
			var param = {
				pw : $("#pw").val(),
				pw_check : $("#pw_check").val()
			};
			callAjax(url,param, "SYSTEM_CHANGE_SECURE");
		}else{
			alert("비밀번호가 동일하지 않습니다")
		}
	});
});

/* callAjax successAjax */
function successAjax(data, serviceName){
	if(serviceName == "SYSTEM_CHANGE_SECURE"){
		alert(data.result);
		window.close();
	}
}


